package org.dromara.knowledge.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 知识库检索结果视图对象 knowledge_search_result
 *
 * @author ruoyi
 */
@Data
@ExcelIgnoreUnannotated
public class KnowledgeSearchResultVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 知识片段ID
     */
    @ExcelProperty(value = "知识片段ID")
    private String fragmentId;

    /**
     * 文档ID
     */
    @ExcelProperty(value = "文档ID")
    private String docId;

    /**
     * 文档名称
     */
    @ExcelProperty(value = "文档名称")
    private String docName;

    /**
     * 知识片段内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 相似度分数
     */
    @ExcelProperty(value = "相似度分数")
    private Double similarityScore;

    /**
     * 排名位置
     */
    @ExcelProperty(value = "排名")
    private Integer ranking;

    /**
     * 片段索引
     */
    @ExcelProperty(value = "片段索引")
    private Integer fragmentIndex;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

}